package com.admin.model.pojo;

import com.admin.model.base.BaseEntity;
import com.baomidou.mybatisplus.annotation.SqlCondition;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.*;

import java.io.Serializable;
import java.util.List;

/**
 * (Role)实体类
 *
 * @author makejava
 * @since 2021-01-31 19:58:51
 */
@TableName(value = "sys_role",resultMap = "BaseResultMap")
@Data
@EqualsAndHashCode(callSuper = true)
@AllArgsConstructor
@NoArgsConstructor
public class Role extends BaseEntity implements Serializable {
    private static final long serialVersionUID = -51266979279654066L;
    /**
    * id
    */
    private Long id;
    /**
    * 名称
    */
    @TableField(condition = SqlCondition.LIKE)
    private String name;
    /**
    * 角色级别
    */
    private Integer level;
    /**
    * 数据权限
    */
    private Integer dataScope;
    /**
    * 描述
    */
    private String description;
    /**
     * 菜单权限
     */
    @TableField(exist = false)
    private List<Menu> menus;
}